package com.bignippleboy.recordthelife.constants;

import android.os.Environment;

import com.bignippleboy.recordthelife.LifeRecordItem;
import com.bignippleboy.recordthelife.data.MyDataBaseAdapter;

public class Constants {
	public static MyDataBaseAdapter m_MyDataBaseAdapter;
	public static String PHOTO_PATH = "PHOTO_PATH";
	public static String MAPCENTER = "MAPCENTER";
	public static String FIRSTORNOT = "FIRSTORNOT"; //first or not

	public static String BASIC_PATH = "/sdcard/LifeRecord/";
	public static String SCREENCENTER = "SCREENCENTER";

	public static String ROWID = "ROWID";

	public static LifeRecordItem item;

	public static LifeRecordItem getItem() {
		return item;
	}

	public static void setItem(LifeRecordItem item) {
		Constants.item = item;
	}

	public static boolean isSDcardWork() {
		String status = Environment.getExternalStorageState();
		if (status.equals(Environment.MEDIA_MOUNTED)) {
			return true;
		} else {
			return false;
		}
	}
}
